package com.trust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.trust.agri.annotation.FieldUnique;
import lombok.Data;

/**
 * @author ccc
 * @since 2023-11-10 14:12:03
 */
@Data

@TableName("system_department")
@FieldUnique(fieldNames = {""})
public class SystemDepartment {

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 部门名称 */
    @TableField(value = "name")
    private String name;

    /** 联系人 */
    @TableField(value = "contact")
    private String contact;

    /** 联系方式 */
    @TableField(value = "phone")
    private String phone;

    /** 部门编号 */
    @TableField(value = "code")
    private String code;

    private Integer personId;

    @TableField(value = "parent_Id")
    private Integer parentId;


}